package my.study.org.junit.test.util;

import java.util.List;

import org.apache.commons.lang.builder.ToStringBuilder;

public final class MyToStringBuilder {
	public static String toString(List<?> list) {
		StringBuilder sb = new StringBuilder();
		sb.append("[");
		for (Object o : list) {
			sb.append(toString(o) + ",");
		}
		sb.append("]");
		return sb.toString();
	}
	
	public static String toString(Object o) {
		return ToStringBuilder.reflectionToString(o);
	}
}
